import classNames from 'classnames'
import PropTypes from 'prop-types'
export default function Icon({ type, className, ...reset }) {
  return (
    <svg
      className={classNames('icon', className)}
      {...reset}
      aria-hidden="true"
    >
      <use xlinkHref={`#${type}`}></use>
    </svg>
  )
}
Icon.propTypes = {
  type: PropTypes.string.isRequired,
}
